package com.cmj.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cmj.domain.entity.UserRole;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {

    @Insert("insert into sys_user_role (user_id,role_id) values (#{userId},#{roleId})")
    int insertUserRole(UserRole userRole);
}